#include "osObjects.h"  
#include "systimer.h"
#include "rtctime.h"
#include "pincfg.h"
#include "templib.h"
#include "tempctrlib.h"
#include "sys.h"
//---------------------------------------------------------------------------//
uint16_t PulseTimerTest = 0;
/*----------------------------------------------------------------------------
 *      Global Functions
 *---------------------------------------------------------------------------*/
void SysIoCheck(void);
void SysIoCtr(void);
/*--------------------------- os_idle_demon ---------------------------------*/

uint32_t uuid[3];
uint32_t memInfo;

uint32_t IdleTaskCnt;

uint16_t ParT[6] = {60, 240, 240, 100, 3, 0};

/// \brief The idle demon is running when no other thread is ready to run

void vApplicationIdleHook(void) {
    //uint16_t Cnt;

    uuid[0] = *((const uint32_t *) 0x1FFF7A10);
    uuid[1] = *((const uint32_t *) 0x1FFF7A14);
    uuid[2] = *((const uint32_t *) 0x1FFF7A18);
    memInfo = *((const uint32_t *) 0x1FFF7A20);


    //---------------------------------------------------------------------//
    // HERE: include optional user code to be executed when no thread runs.
    IdleTaskCnt++;

    SysPulseClear();
    SysPulseCreat();

    SysIoCheck();
    SysIoCtr();


    if (bPulse_1s)
        TimeRun();

    if (bPulse_250ms) {

    }
}

void SysIoCheck() {

}

void SysIoCtr() {

}

